package com.tuoyu.replace.tool;

import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * 替换工具主应用类
 * 可以选择运行项目架构改造工具
 * 
 * @author tuoyu
 */
@SpringBootApplication
public class ReplaceToolApplication implements CommandLineRunner {

    public static void main(String[] args) {
        SpringApplication.run(ReplaceToolApplication.class, args);
    }

    @Override
    public void run(String... args) throws Exception {
        System.out.println("========================================");
        System.out.println("      替换工具 - Replace Tool");
        System.out.println("========================================");
        System.out.println();
        System.out.println("可用工具:");
        System.out.println("1. 项目架构改造工具 (ProjectRefactorTool)");
        System.out.println();
        System.out.println("使用方法:");
        System.out.println("  运行 ProjectRefactorTool.main() 方法");
        System.out.println("  或使用命令: java -cp xxx.jar com.tuoyu.replace.tool.ProjectRefactorTool");
        System.out.println();
        System.out.println("详细文档请查看: README_REFACTOR.md");
        System.out.println("========================================");
    }
}
